package controller.servlet.user;

import java.io.IOException;
import java.util.HashMap;
import java.util.Set;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class AjaxUser extends HttpServlet {
	private static final long serialVersionUID = 1L;
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		HashMap<String,String> profs = new HashMap<String,String>();
		profs.put("Payment Forms", "/admin/payment-forms.ja");
		profs.put("Sales Report", "/admin/sales-report.ja");
		profs.put("Category", "/admin/category.ja");
		profs.put("Client", "/admin/client.ja");
		profs.put("Product", "/admin/product.ja");
		profs.put("User", "/admin/user.ja");
		profs.put("Admin", "Admin");
		Set<String> keys = profs.keySet();
		request.setAttribute("profs", profs);
		request.setAttribute("keys", keys);
		RequestDispatcher rd = request.getRequestDispatcher("/admin/register-user.jsp");
		rd.forward(request, response);
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

	}

}
